#!/bin/env bash
export az_user=biz.analyse
export cmd=$@
sudo useradd  -g azkaban -s /sbin/nologin -M $az_user
sudo usermod -a -G azkaban $az_user
sudo -u $az_user sh -c 'source /usr/local/azkaban/py_venv/python27_wangxin18/bin/activate && $cmd && deactivate'
